export const BasicData={
    state:{
       current_g_id:-1,    //当前网格
       current_route:'',    //当前路由
       showCId:true         //是否展示社区下拉
    },
    mutations:{
       setCurrentGId(state,g_id){
          state.current_g_id=g_id;
       },
       setCurrentRoute(state,route){
          state.current_route=route;
       },
       setShowCId(state,status){
          state.showCId=status;
       }
    },
    actions:{
    },
    getters:{
      getCurrentGId: state =>{
        return state.current_g_id;
      },
      getCurrentRoute: state =>{
        return state.current_route;
      },
      getShowCId: state => {
        return state.showCId;
      }
    }
}
